<template>
  
  <div>
    <div class="k-section" v-for="item in homeSections">
      <div class="k-title">
        {{item.title}}
        <div class="k-more">
          <router-link class="more-link" :to="item.route">查看更多>></router-link>
        </div>
      </div>
      <router-view :name="item.category"></router-view>
    </div>
  </div>
</template>
<script>
  import {
    pagination,
    search,
    home
  } from 'fac/mixin.js';
  import {
    mapState,
    mapGetters
  } from 'vuex'
  import {
    NS
  } from 'fac/constant'
  const NS_HOME = NS.HOME;
  const NS_SEARCH = NS.SEARCH;
  const NS_PERSONAL = NS.PERSONAL;
  const NS_PAGINATION = NS.PAGINATION;
  export default {
    name: 'index-home',
    mixins: [pagination, search, home],
    data() {
      return {}
    },
    computed: {
      ...mapGetters(NS_HOME, {
        homeSections: 'sections'
      })
    },
    mounted() {}
  }

</script>
